﻿using System.Collections.Generic;

namespace CommonEngine.SDK
{
    /// <summary>
    /// api服务端统一操作行为(for WebApi)
    /// </summary>
    public interface IServiceAct<T> where T : class
    {
        ReturnResult<T> Select();
        ReturnResult<T> Find(string IdKey);
        ReturnResult<T> Add(T item);
        ReturnResult<T> Update(string IdKey, T item);
        ReturnResult<T> Delete(string IdKey);
        ReturnResult<T> BizExt(Dictionary<string, string> parameters);
    }
}
